<form id="frmModal" name="frmModal" action="<?php echo site_url(array('psdm','nilai','ajax','save')) ?>" method="post">
<h3 class="dialog_title"><span>Add Nilai</span></h3>
<div class="dialog_content" style="width: 550px">
<div style="border-bottom: 1px solid #CCC; padding: 10px 0" >
<table width="100%" border="0" cellpadding="5" cellspacing="0">
	<tr>
		<td align="right" valign="top" width="35%"><div style="padding-top: 3px">Prestasi/Pelanggaran:</div></td>
		<td style="overflow: hidden;">
			<input type="hidden" name="inp[0]" value="<?php echo array_key_exists('detachiev_id', $detachiev_data)? $detachiev_data['detachiev_id'] : ""?>" />
			<input type="text" value="<?php echo array_key_exists('detachiev_nama', $detachiev_data)? $detachiev_data['detachiev_nama'] : ""?>" disabled />
			<input class="button" type="button" value="Search" onclick="do_add()" />
			<table id="prepel" width="100%" style="position:  relative;">
				<tr>
					<td width="50px">Jenis:</td>
					<td><?php echo array_key_exists('achiev_jenis', $detachiev_data)? $detachiev_jenis[$detachiev_data['achiev_jenis']] : ""?></td>
				</tr>
				<tr>
					<td>Bidang:</td>
					<td><?php echo array_key_exists('achiev_bidang', $detachiev_data)? $detachiev_data['achiev_bidang'] : ""?></td>
				</tr>
				<tr>
					<td>Tingkat:</td>
					<td><?php echo array_key_exists('detachiev_tingkat', $detachiev_data)? $detachiev_tingkat[$detachiev_data['detachiev_tingkat']] : ""?></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align="right" valign="top"><div style="padding-top: 3px">Reward/Punishment:</div></td>
		<td>
			<input type="hidden" name="inp[1]" value="<?php echo array_key_exists('reward_id', $reward_data)? $reward_data['reward_id'] : ""?>" />
			<input type="text" value="<?php echo array_key_exists('reward_nama', $reward_data)? $reward_data['reward_nama'] : ""?>" disabled />
			<input class="button" type="button" value="Search" onclick="do_add_callback()" />
			<table id="prepel" width="100%" style="position:  relative;">
				<tr>
					<td width="50px">Jenis:</td>
					<td><?php echo array_key_exists('reward_jenis', $reward_data)? $reward_options[$reward_data['reward_jenis']] : ""?></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align="right">Nilai Minimal:</td>
		<td>
			<input id="inp_min" type="text" name="inp[2]" style="width: 40px; text-align: right;" class="validate['required','digit[0,-1]','%ammountCheck','%rangeCheck']" maxlength="5" />
		</td>
	</tr>
	<tr>
		<td align="right">Nilai Maksimal:</td>
		<td>
			<input id="inp_max" type="text" name="inp[3]" style="width: 40px; text-align: right;" class="validate['required','digit[0,-1]','%ammountCheck','%rangeCheck']" maxlength="5" />
		</td>
	</tr>
	<tr>
		<td align="right">Point:</td>
		<td>
			<input type="text" name="inp[4]" style="width: 40px; text-align: right;" class="validate['required','number']" maxlength="5" />
		</td>
	</tr>
</table>
</div>
<div class="dialog_buttons" style="padding: 12px 10px">
	<input class="button" type="submit" value="Save"  />
	<input class="button" type="button" value="Cancel" onclick="FBModal_hide()" />
</div>
</div>
</form>